package com.lajiaomian.springbootruijiwaimai.service.impl.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lajiaomian.springbootruijiwaimai.mapper.ShoppingCartMapper;
import com.lajiaomian.springbootruijiwaimai.pojo.ShoppingCart;
import com.lajiaomian.springbootruijiwaimai.service.impl.ShoppingCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lajiaomian
 * @create 2022-08-17-22:21
 */
@Service
public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, ShoppingCart> implements ShoppingCartService {
    @Autowired
    private ShoppingCartMapper shoppingCartMapper;

    @Override
    public ShoppingCart getOneByUserIdAndDishIdAndSetmealId(Long userId, Long dishId, Long setmealId) {
        ShoppingCart one = shoppingCartMapper.getOneByUserIdAndDishIdAndSetmealId(userId, dishId, setmealId);
        return one;
    }
}
